package org.cytoscape.myapp.my_cyaction_app.internal;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.Vector;


import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.model.CyColumn;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNetworkFactory;
import org.cytoscape.model.CyNetworkManager;


public class CyNetworkEqual extends CyFactoryNetworkAgregation{
	
	public CyNetworkEqual(CyNetworkFactory networkFactory,CyApplicationManager appManager,CyNetworkManager networkManager, String attribute){
		
		super(networkFactory,appManager,networkManager, attribute);
		
		Set<Object> values = new  HashSet<Object>();
		values.addAll(this.getValuesColumn());
		CyRangeCompose rangos = new CyRangeCompose();
		for(Object val:values){
			rangos.AddRank(new CyEqualNodes(val));
		}
		this.setRangos(rangos);
	}
	
	

}
